﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;
using System.Data.SqlClient;
using Microsoft.Practices.EnterpriseLibrary.Data;

namespace CUSTOMS.Modules.QLHS.Components
{
    public partial class BoPhan
    {
        public static DataSet SelectAll()
        {
            const string spName = "[dbo].[p_HAIQUAN_QLHS_BoPhan_SelectAll]";
            SqlDatabase db = (SqlDatabase)DatabaseFactory.CreateDatabase();
            SqlCommand dbCommand = (SqlCommand)db.GetStoredProcCommand(spName);

            return db.ExecuteDataSet(dbCommand);
        }
    }
}
